<!DOCTYPE html>
<html class="x-admin-sm">

    <head>
        <meta charset="UTF-8">
        <title>欢迎页面-X-admin2.2</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="css/font.css">
        <link rel="stylesheet" href="css/xadmin.css">
        <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
        <script type="text/javascript" src="lib/layui/layui.js" charset="utf-8"></script>
        <script type="text/javascript" src="js/xadmin.js"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
            <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
            <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row">
                <form class="layui-form">
                  <div class="layui-form-item">
                      <label for="nikeName" class="layui-form-label">
                          <span class="x-red" style="font-size: 16px;">转发详情如下 :</span>
                      </label>
                      <div class="">
                          <input type="text" id="showMsg" required class="layui-input" readonly style="font-size: 16px;">
                      </div>
                  </div>
              </form>
            </div>
        </div>
      <script>
            var url = location.search; //获取url中"?"符后的字串
            //console.log(url);
            var theRequest = new Object();
            if (url.indexOf("?") != -1) {
                var str = url.substr(1);
                strs = str.split("&");
                for (var i = 0; i < strs.length; i++) {
                    theRequest[strs[i].split("=")[0]] = decodeURIComponent(strs[i].split("=")[1]);
                }
            }
        var tableid=theRequest['tableId'];
            $.ajax({
                url: "/contract/transmitMsg",
                type: "get",
                dateType: "json",
                data:{
                    level1SystemId: tableid
                },
                success: function(res) {
                    console.log(res)
                    if(res.msg == 'success') {
                      var text = new Array();
                      for(var i = 0; i < res.data.msg.length; i++) {
                          text.push(res.data.msg[i]);
                      }
                      $('#showMsg').val(text.join('　＞＞　'));
                    } else {
                      alert('失败');
                    }
                }
            })
      </script>
    </body>

</html>
